package com.liwq.cloudstudyconsumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author : liwq
 * @version : 1.0
 * @date : 2022/7/5
 **/
@FeignClient(value = "LxHelloProvider")//标记这是远程服务，需要指定服务名称
public interface HelloService {
    @RequestMapping("/sayHello")
        //必须和服务提供者的一样
    String hi(@RequestParam String userName);
}
